define(['text!unclosedLoop/process.html'],
	function(viewTemplate) {
		return Piece.View.extend({
			id: 'unclosedLoop_process',
			events:{
				"click .closeBtn" : "gotoMenu"
			},
			render: function() {
				$(this.el).html(viewTemplate);

				Piece.View.prototype.render.call(this);
				return this;
			},
			onShow: function() {
				new iScroll($("#process")[0]);
			},
			gotoMenu: function(){
				this.container.navigateForResult('/login/menu',{
					trigger:true
				}, this.onGotResult);
			}
		}); //view define

	});